<div class="rw_tit">
	<span>{:L('_DETAIL')}</span>
</div>
<div class="tadd">
	<div class="h">
		<p class="p1">{:L('_ID')}</p>
		<p class="p2">{$task.id}</p>
		<div class="clear"></div>
	</div>
	<div class="h">
		<p class="p1">{:L('_TITLE')}</p>
		<p class="p2">{$task.title}</p>
		<div class="clear"></div>
	</div>
	<div class="h">
		<p class="p1">{:L('_START_TIME')}</p>
		<p class="p2">{$task.start_time|date="Y-m-d G:i",###}</p>
		<div class="clear"></div>
	</div>
	<div class="h">
		<p class="p1">{:L('_END_TIME')}</p>
		<p class="p2">{$task.end_time|date="Y-m-d G:i",###}</p>
		<div class="clear"></div>
	</div>
	<div class="h">
		<p class="p1">{:L('_CONTENT')}</p>
		<p class="p2">{$task.content}</p>
		<div class="clear"></div>
	</div>
	<div class="h">
		<p class="p1">{:L('_REMARK')}</p>
		<p class="p2">{$task.remark}</p>
		<div class="clear"></div>
	</div>
	<form method="post" action="{:U('TaskManage/activityExtension/')}"
		id="activityExtension">
		<div class="h">
			<p class="p1">新{:L('_END_TIME')}</p>
			<p class="p2">
				<input type="text" readonly="readonly" name="end_time" id="end_time"
					class="yanz" />
			</p>
			<div class="clear"></div>
		</div>
		<div class="h">
			<p class="p1">&nbsp;</p>
			<p class="p3">
				<input type="submit" value="" class="update" /> <input
					type="hidden" name="id" value="{$task.id}">
			</p>
		</div>
	</form>
</div>
<script type="text/javascript">
	$(function() {
		$("#end_time").datepicker({
			changeMonth : true,
			changeYear : true,
			dateFormat : "yy-mm-dd"
		});
		$('#activityExtension').ajaxForm({
			dataType : 'json',
			success : processJson
		});
		function processJson(data) {
			if (data.status) {
				closeBox();
			} else {
				alert(data.data);
			}
		}
	});
</script>